<html>
<body>
Reports conditional expressions which can be replaced by simpler but equivalent expressions.
<table>
  <tr><th>Example</th><th>&rarr;</th><th>Replacement</th></tr>

  <tr>
    <td>condition ? true : false</td>
    <td></td>
    <td>condition</td>
  </tr>

  <tr>
    <td>condition ? false : true</td>
    <td></td>
    <td>!condition</td>
  </tr>

  <tr>
    <td>value == null ? null : value</td>
    <td></td>
    <td>value</td>
  </tr>

  <tr>
    <td>result != 0 ? result : 0</td>
    <td></td>
    <td>result</td>
  </tr>

  <tr>
    <td>a == b ? a : b</td>
    <td></td>
    <td>b</td>
  </tr>
</table>
<!-- tooltip end -->
<p>

</body>
</html>